<!--有理想的地方，地狱都是天堂-->
<!--Copyright @ df81.com 版权所有-->
<!--作者: 南国老符 邮箱：1062129401@qq.com-->
{include file="public/js_ueditor" /}
<link href="{:config('template.skin')}/bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css" rel="stylesheet" type="text/css" />
<div class="modal-header">
    <span class="modal-title"><img src="{$userRs.avatar}" class="rounded-circle mr-1" width="20" height="20" onerror="this.src='{:config('template.skin')}/img/avatar.png'"> {$userRs.nickname}：{$mod_rs.title|msubstr=0,15}</span>
    <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span></button>
</div>
<div class="p-2">
    <form name="form_edit" id="form_edit" method="post" action="{:url('/comment/edit',['id'=>$rs['id'],'lang'=>$lang,'signid'=>input('signid')])}">
        <input type="hidden" name="id" value="{$rs.id}">
        <div class="row">
            <div class="col-md-12 mb-2">
                <div class="float-left">{:lang('v_comment')} {:lang('v_content_a')}</div>
                <div class="float-right"><a href="/{:input('lang')}/{$mod_rs.urlroute}-{$mod_rs.routesign}{$mod_rs.id}.html" target="_blank"><i class="fa fa-eye"></i> {:lang('v_view')} {:lang('v_original')}</a></div>
            </div>
            <div class="col-md-12 mb-2">
                <textarea name="content" id="content1a" style="width:100%; height:80px;">{$rs.content|raw}</textarea>
            </div>
            <div class="col-md-12 mb-2">
                <div class="w-100">
                    {:lang('v_status')}：
                    <label class="form-check form-check-inline text-blue">
                        <input type="radio" name="signid" value="3"{eq name="rs.signid" value="3"} checked="checked"{/eq} class="form-check-input" />{:lang('v_audit_pending')}
                    </label>
                    <label class="form-check form-check-inline text-green">
                        <input type="radio" name="signid" value="1"{eq name="rs.signid" value="1"} checked="checked"{/eq} class="form-check-input" />{:lang('v_audit')}
                    </label>
                    <label class="form-check form-check-inline text-purple">
                        <input type="radio" name="signid" value="2"{eq name="rs.signid" value="2"} checked="checked"{/eq} class="form-check-input" />{:lang('v_reject')}
                    </label>
                    <label class="form-check form-check-inline text-red">
                        <input type="radio" name="signid" value="{:time()}"{gt name="rs.signid" value="8"} checked="checked"{/gt} class="form-check-input" />{:lang('v_recycle')}
                    </label>
               </div>
            </div>
            <div class="col-md-12 mb-4">
                <div class="input-group date form_datetime">
                    <div class="input-group-prepend"><button type="button" class="btn btn-default">{:lang('v_adddate')}</button></div>
                    <input name="addtime" readonly="readonly" type="text" class="form-control" value="{empty name="rs.addtime"}{php}echo date('Y-m-d H:i:s',time());{/php}{else /}{$rs.addtime|date='Y-m-d H:i:s'}{/empty}">
                    <span class="input-group-append">
                        <span class="btn btn-default date-set"><i class="fa fa-calendar-alt mr-1"></i></span>
                    </span>
                </div>
            </div>
            <div class="col-md-12 mb-2 text-center">
                {if is_file(app()->getRootPath().'.env')}
                    <button type="submit" class="do_ajax btn btn-success mr-4"><i class="fas fa-check-circle mr-2"></i>{:lang('v_save')}</button>
                {else /}
                    <button type="button" class="do_ajax btn btn-success mr-4" onclick="javascript:do_ajax('#form_edit','.do_ajax','{:url('/comment/edit',['id'=>$rs['id'],'lang'=>$lang,'signid'=>input('signid')])}','{:url('/comment/index',['lang'=>$lang,'signid'=>input('signid')])}');"><i class="fas fa-check-circle mr-2"></i>{:lang('v_save')} {:lang('v_edit')}</button>
                {/if}
                <button type="button" class="btn btn-default" data-dismiss="modal"><i class="fa fa-times-circle mr-1"></i>{:lang('v_close')}</button>
            </div>
        </div>
    </form>
</div>
{include file="public/js_datetime_picker" /}
{include file="public/js_rich_text_small" /}